*************
*Playing to the Gallery: Emotive Rhetoric in Parliaments
*Moritz Osnabruegge, Sara B. Hobolt, Toni Rodon
*Analysis of parliamentary speeches held in the Irish Parliament
*************


clear


*Specify the path here
cd "path"


import delimited "ireland_data.csv", encoding(UTF-8) clear 


**Table A3: Summary statistics: DailEireann debates
sutex emotive_rhetoric leaders_question taoiseach tanaiste minister minister_state electoral_cycle linear_trend, minmax



**Tables 5 and A6: OLS regression analysis of emotive rhetoric in the Irish Parliament

*Model 1: OLS baseline
reg emotive_rhetoric leaders_question, vce(cluster memberid)

*Model 2: OLS with time trend
reg emotive_rhetoric leaders_question linear_trend, vce(cluster memberid) 

*Model 3: OLS with time trend and MP fixed-effects
areg emotive_rhetoric leaders_question linear_trend, vce(cluster memberid) a(memberid)

*Model 4: OLS with time trend, party fixed-effects and controls
areg emotive_rhetoric leaders_question taoiseach tanaiste minister minister_state electoral_cycle linear_trend, vce(cluster memberid) a(partyid)

*Model 5: OLS with time trend, MP fixed-effects and weighting by speech length
areg emotive_rhetoric leaders_question linear_trend [aw=words], vce(cluster memberid) a(memberid)